package com.dxy.pack.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/jar-package")
public class TestController {

    @Value("${spring.application.name}")
    private String applicationName;

    @Value("${dxy.env.name}")
    private String envName;

    @GetMapping("/test01")
    public String test01() {
        return applicationName;
    }

    @GetMapping("/test02")
    public String test02() {
        return envName;
    }
}
